package com.six.core.controller;


import com.six.core.entity.Emp;
import com.six.core.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description:
 * @author:LiWei
 * @date:2023年02月27日12:27
 */
@RequestMapping("/system/emp")
@RestController
public class EmpController {
    @Autowired
    private EmpService empService;
    @RequestMapping("findByName")
    public Emp findByName(@RequestParam String username){
        Emp emp=empService.findByName(username);
        return emp;
    }
}
